HTML5 Mobile Development Cookbook by unknow
Author:unknow
Language: eng
Format: epub
Publisher: Packt Publishing
Getting ready
In this example, we will use a function in Mobile Boilerplate. Create a file called ch04r06.html.
How to do it...
The following code will create a form with a submit button:
<!doctype html> <html> <head> <title>first.fm</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> #contact { width:220px; height:40px; } </style> </head> <body> <header> <h1>Contact Form</h1> </header> <div id="main"> <textarea id="contact"></textarea><br /> <button id="btn">INSTANT button!!!</button><br /> <span id="result"></span> </div> <footer> <small>© 2011 first.fm</small> </footer> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script> <script src="//github.com/shichuan/mobile-html5-boilerplate/raw/master/js/mylibs/helper.js"></script> <script> var btn = document.getElementById("btn"); MBP.fastButton(btn,showForm); function showForm() { $("#result").html("Thank you for submitting, we will get back to you shortly!"); } </script> </body> </html>
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12705)
Hello! Python by Anthony Briggs(10009)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9878)
The Mikado Method by Ola Ellnestam Daniel Brolund(9876)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(9839)
Dependency Injection in .NET by Mark Seemann(9422)
Hit Refresh by Satya Nadella(8874)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8389)
The Kubernetes Operator Framework Book by Michael Dame(8017)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7841)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7809)
Exploring Deepfakes by Bryan Lyon and Matt Tora(7802)
Grails in Action by Glen Smith Peter Ledbrook(7774)
Practical Computer Architecture with Python and ARM by Alan Clements(7754)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7721)
Robo-Advisor with Python by Aki Ranin(7702)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7656)
Building Low Latency Applications with C++ by Sourav Ghosh(7603)
Svelte with Test-Driven Development by Daniel Irvine(7588)
